package jaxb.cow;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * <p>用于对应处理Excel中的数据导入到集合属性中.</p>
 * @author shenjunjie
 * @see [相关类/方法]
 * @date [2014-6-25]
 * @version 1.0
 */
@XmlRootElement(name = "zone")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class ExcelMappingZone
{
    /** 开始位置的横坐标 */
    @XmlAttribute
    private String startX;
    
    /** 开始位置的纵坐标 */
    @XmlAttribute
    private Integer startY;
    
    @XmlAttribute
    private String startXY;
    
    /** 结束位置的横坐标 **/
    @XmlAttribute
    private String endX;
    
    /** 结束位置的纵坐标 **/
    @XmlAttribute
    private Integer endY;
    
    @XmlAttribute
    private String endXY;
    
    /**对应的字段名*/
    @XmlAttribute
    private String field;
    
    /**对应区域 列表*/
    @XmlElement(name="unit")
    private List<ExcelMappingUnit> units;
    
    public String getStartX()
    {
        return startX;
    }
    
    public void setStartX(String startX)
    {
        this.startX = startX;
    }
    
    public Integer getStartY()
    {
        return startY;
    }
    
    public void setStartY(Integer startY)
    {
        this.startY = startY;
    }
    
    public String getField()
    {
        return field;
    }
    
    public void setField(String field)
    {
        this.field = field;
    }
    
    public List<ExcelMappingUnit> getUnits()
    {
        return units;
    }
    
    public void setUnits(List<ExcelMappingUnit> units)
    {
        this.units = units;
    }
    
    public String getEndX()
    {
        return endX;
    }
    
    public void setEndX(String endX)
    {
        this.endX = endX;
    }
    
    public Integer getEndY()
    {
        return endY;
    }
    
    public void setEndY(Integer endY)
    {
        this.endY = endY;
    }
    
    public String getStartXY()
    {
        return startXY;
    }
    
    public void setStartXY(String startXY)
    {
        this.startXY = startXY;
    }
    
    public String getEndXY()
    {
        return endXY;
    }
    
    public void setEndXY(String endXY)
    {
        this.endXY = endXY;
    }
}
